home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / powerb5.zip / P5WPR003.TIP < prev    next >
Text File  |  1993-06-01  |  2KB  |  49 lines

  1. For some time I've tried to come up with a WordPerfect macro
  2. to save my document and allow me to continue working. I
  3. tried {DISPLAY OFF} {Save}{Enter}y, but that worked only if
  4. the document had already been saved once and given a name.
  5. If the document was still nameless, I'd get an 'ERROR:
  6. Invalid drive/path specification' message and have to hit
  7. the <F1> key to continue. Very annoying.
  8.  
  9. After some attempts, I wrote a better macro for saving my
  10. document while I was working (see below).
  11.  
  12. {DISPLAY OFF}
  13. {ON ERROR}{GO}NO_NAME~~
  14. {Save}{Enter}y
  15. {GO}END~
  16. {LABEL}NO_NAME~
  17. {TEXT}fname~File name: ~
  18. {Save}{VARIABLE}fname~
  19. {Enter}
  20. {LABEL}END~
  21.  
  22. This macro will prompt me for a file name if the document
  23. doesn't have one yet, so I can use the same keystroke
  24. whether this is my first save or my tenth. The macro's only
  25. quirk is that when I first save a document, I see the same
  26. old error message. After I've typed in a file name, I see it
  27. again. This is disconcerting at first, but not serious. The
  28. macro works fine despite the appearance of these messages.
  29.  
  30. Bruce Purcell
  31. Elk Grove, California
  32.  
  33. Editor's Note: Not being a WordPerfect guru, I couldn't
  34. figure out a way to avoid the error message Mr. Purcell
  35. mentioned. But as soon as this tip was published, dozens of
  36. readers volunteered solutions. The results are described in
  37. the tip "WordPerfect Quick Save Redux," below this one on
  38. the Wordprocessing menu of the PowerBase *.* Volume 5
  39. Desktop. The improved ALTS.WPM macro is included in the
  40. P5WPM directory on your PowerBase *.* Volume 5 diskette.
  41.  
  42.  
  43. Title: A Quick Save in WordPerfect
  44. Category: WPR
  45. Issue Date: June, 1992
  46. Editor: Brett Glass
  47. Supplementary Files: None
  48. Filename: P5WPR003.TIP
  49.